#ifndef MUSICLISTA_H
#define MUSICLISTA_H

#include "music.h"
#include <QVector>
#include <QList>
#include <QUrl>

class MusicList
{
public:
    typedef QVector<Music>::iterator iterator;
    typedef QVector<Music>::const_iterator const_iterator;

    MusicList();

    void addMusicsByUrl(QList<QUrl>& musicUrls);

    iterator findMusicByMusicId(const QString& musicId);

    iterator begin();
    const_iterator begin() const;
    iterator end();
    const_iterator end() const;

    void writeToDB();
    void readToDB();

private:
    QVector<Music> musicList;
};

#endif // MUSICLISTA_H
